﻿using System;
using System.ComponentModel.DataAnnotations;
namespace Manager.Model.Admin
{
    /// <summary>
    /// M_Product:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class M_Product
    {
        public M_Product()
        { }
        #region Model
        private int _productid;
        private string _productname;
        private string _productdesc;
        private int? _producttypeid;
        private int? _productshopid;
        private string _productimage;
        private bool _isvalid = true;
        private bool _istop = false;
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="产品编号")]
        public int ProductID
        {
            set { _productid = value; }
            get { return _productid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "产品名称")]
        [StringLength(50)]
        [Required]
        public string ProductName
        {
            set { _productname = value; }
            get { return _productname; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "产品描述")]
        public string ProductDesc
        {
            set { _productdesc = value; }
            get { return _productdesc; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "产品类别")]
        public int? ProductTypeID
        {
            set { _producttypeid = value; }
            get { return _producttypeid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "所属商店")]
        public int? ProductShopID
        {
            set { _productshopid = value; }
            get { return _productshopid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "产品图片")]
        public string ProductImage
        {
            set { _productimage = value; }
            get { return _productimage; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "是否有效")]
        public bool IsValid
        {
            set { _isvalid = value; }
            get { return _isvalid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "首页显示")]
        public bool IsTop
        {
            set { _istop = value; }
            get { return _istop; }
        }
        #endregion Model

    }
}

